package com.pushbox.vo;

import java.io.Serializable;

/**
 * 返回结果类
 * 
 * @author hatcher
 *
 */
public class BaseResult implements Serializable {
	/** serialVersionUID */
	private static final long serialVersionUID = 6969395970079946617L;

	/** 是否成功，需先判断该值是否为true，只有为ture时方可继续正常的后续业务处理 */
	public boolean result = true;

	/** 返回code */
	public String resultCode = "0000";

	/** 结果描述 **/
	public String resultMsg = "结果信息";

	/**
	 * 默认构造
	 */
	public BaseResult() {
	}

	/**
	 * 构造函数
	 * 
	 * @param success
	 *            是否成功
	 * @param resultCode
	 *            结果码
	 * @param resultMsg
	 *            结果描述
	 */

	public BaseResult(boolean result, String resultCode, String resultMsg) {
		this.result = result;
		this.resultCode = resultCode;
		this.resultMsg = resultMsg;
	}

	public boolean isResult() {
		return result;
	}

	public void setResult(boolean result) {
		this.result = result;
	}

	public String getResultCode() {
		return resultCode;
	}

	public void setResultCode(String resultCode) {
		this.resultCode = resultCode;
	}

	public String getResultMsg() {
		return resultMsg;
	}

	public void setResultMsg(String resultMsg) {
		this.resultMsg = resultMsg;
	}

}
